import request from '../utils/request';

export interface IUserLogin {
  username?: string;
  password?: string;
  remember?: string;
  confirmPassword?: string;
}

export const getUserService = () => {
  return request.get('/login');
};

export const userLoginService = (opt: IUserLogin) => {
  return request.get('/login', { params: opt });
};

export const userRegisterService = (opt: IUserLogin) => {
  return request.post(`/login`, opt);
};
